package me.zhengjie.modules.service.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.modules.domain.enterprise.EnterpriseIndustry;
import me.zhengjie.modules.repository.enterprise.EnterpriseIndMapper;
import me.zhengjie.modules.service.EnterpriseIndService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("EnterpriseIndService")
@RequiredArgsConstructor
public class EnterpriseIndServiceImpl implements EnterpriseIndService {

    private final EnterpriseIndMapper enterpriseIndMapper;

    @Override
    public List<EnterpriseIndustry> queryAllMenuParentIsNull() {
        return enterpriseIndMapper.selectAllMenuParentIsNull();
    }

    @Override
    public EnterpriseIndustry queryMenuByName(String name) {
        return enterpriseIndMapper.selectMenuByName(name);
    }
}
